<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" href="css/tickets.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="date/css/date_input.css"/>
<script type="text/javascript" src="date/js/jquery.js"></script>
<script type="text/javascript" src="date/js/jquery.date_input.js"></script>
<script type="text/javascript" src="date/js/jquery.date_input.zh_CN.js"></script>
<script type="text/javascript" src="js/tickets.js"></script>
<title>智慧城市 - 订票</title>
<script type="text/javascript">
	$(function(){
		$("#mydate").date_input();
		$("#mydate").val(getCurrentDate());
	});
	
	function getCurrentDate(){
		var date=new Date();
		var year=date.getFullYear();
		var month=date.getMonth()+1;
		var day=date.getDate();
		if(month<10){
			month="0"+month;
		}
		if(day<10){
			day="0"+day;
		}
		return year+"-"+month+"-"+day;	
	}
</script>
</head>

<body>
	<header style="background:#006291;height:70px;width:100%;">
    	<img style="height:70px;margin-left:30px;" src="images/title.png" alt="智慧城市">
        <ul style="height:70px;list-style:none;position:absolute;top:0;right:30px;font-family:'幼圆';">
        	<li style="height:70px;width:120px;line-height:70px;font-size:20px;float:left;text-align:center;">
            	<a style="color:white;text-decoration:none;" href="tickets.html">车票/机票</a>
            </li>
            <li style="height:70px;width:120px;line-height:70px;font-size:20px;float:left;text-align:center;">
            	<a style="color:white;text-decoration:none;" href="search.html">出行</a>
            </li>
        	<li style="height:70px;width:120px;line-height:70px;font-size:20px;float:left;text-align:center;">
            	<a style="color:white;text-decoration:none;" href="index.jsp">返回首页</a>
            </li>
        </ul>
    </header>
    <div class="content">
    	<div class="con_1">
        	<div class="search_bar">
                <input type="text" value="衡阳" placeholder="请输入出发地" id="go"/>
                <span id="space"><a id="changeGT" onClick="changeGT()"></a></span>
                <input type="text" value="长沙" placeholder="请输入目的地" id="to"/>
                <input type="text" readonly id="mydate"  name="mydate" size="20"/>
                <input type="button" onclick="searchTrain();" id="seachr_tic" value="搜索"/>
            </div>
        </div>
        <div class="tic_info">
        	<p>
        		<span id="go_place">出发地</span>&nbsp;→&nbsp;<span id="to_place">目的地</span>&nbsp;&nbsp;
        		<span class="d_r">--月--日</span>&nbsp;&nbsp;&nbsp;&nbsp;
        		<span style="font-size:12px;">（共<span id="ticket_result">0</span>个结果）</span>
        	</p>
        </div>
        <div class="tic_result" style="display:none;">
        	<table id="tickets_info" border="0px" cellspacing="0px" style="border-collapse:collapse;width:100%;text-align:center;margin:20px 0 0 10px;">
                
        	</table>
        </div>
    </div>
    <footer style="height:70px;background:#E6E6E6;">
    	<p style="line-height:70px;font-size:16px;text-align:center;">CopyRight &copy; 智慧城市 - 衡阳 All rights reserved.</p>
    </footer>
</body>
</html>
